home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Font Heaven
/
Font Heaven.iso
/
fontaps
/
fontfind
/
fontfind.doc
< prev
next >
Wrap
Text File
|
1992-12-02
|
9KB
|
196 lines
FONTFIND.EXE - PostScript Font Finder
Windows Version 1.0, December 1992
written by Ivan Gonzalez, CIS 72540,433
-------------------------------------------------------------------
- I assume whoever is going to use this program is using Adobe
Type Manager.
- This program will only work with PostScript PFMs and it is
limited to 1024.
-------------------------------------------------------------------
What does PostScript Font Finder does?
PostScript Font Finder is a Windows utility that will allow you to
find the Windows Menu Name + Attributes that must be selected within
Windows applications to obtain a PostScript font, it can also show
you what the font looks like if it is installed under windows.
PostScript Font Finder was written in Visual Basic 1.0 so you would
need the Visual Basic Run Time Library "VBRUN100.DLL", this file can
be found in CIS, MSBASIC Forum, Lib 5 as VBRUN.ZIP
Why did I write this Utility?
I will better explain this with an example:
Font Package #57 from the Adobe Type Library "Itc Kabel" includes
the following fonts:
ITC Kabel book
ITC Kabel medium
ITC Kabel demi
ITC Kabel bold
ITC Kabel ultra
After installing them in windows, when you try to access them, all you
see in the Windows Apps's Menus are entries for ITCKabel book, medium
and ultra and you wonder how to select the two that are missing (demi
and bold) well I check the PFM files with a software from Vincent Chen
[76636,415] call WPFMFIX and I found that to get ITC Kabel demi I should
indicate ITC Kabel book and apply bold to it also to get ITC Kabel Bold
I have to select ITC Kabel medium and apply bold to it.
Anyhow, with a little experience it would have not been to difficult to
figure this one out as there are only 5 fonts in the package but what
about expert packages that usually come with 8 to 12 fonts.
So, I wrote down this program with Visual Basic that read all the PFM
files in the sub-directory selected and creates a database with the
PostScript Font name, Windows Menu name, attributes and DOS File Name
for each "PostScript" PFM found.
After the database is created you can search it by selecting a PostScript
Font Name form the pull-down box, Font Finder will show you the Windows
Menu Name and Attributes that must be selected within Windows Apps to
obtain the desire PostScript font.
You could see a sample of the font by clicking in the Sample button or
by pressing Alt-M. By pressing the Text button or pressing Alt-T you
could enter the text you want to see displayed in the samples box, if
you just want to seee the PostScript font name displayed (which is the
Default) just press Text and leave it empty before clicking OK or
pressing enter.
If you select the "Always show sample" checkbox by either clicking on it
or by pressing Alt-A then whenever you selected a new font it will auto-
matically show you a sample of it.
If the programs tell you that it can not find a particular font to show
then it is either not install in Windows or if you are using ATM the
font has an entry in the ATM.INI, Aliases groups
If you press Alt-N then you will be able to scroll through the list with
the arrow keys.
Alt-S or clicking on the search box will allow you to type any combinations
of letters to get to a font quick.
If you add or remove fonts you should update your fonts database by
pressing the File button then locate the directory with the drive and
directory navigation boxes (you could just also type in the full search
path for your PFMs in the upper write corner box) where your PFM files
are and push Create Font Database. When you are back in Font Finder you
will be accessing the newly created or updated database.
Print can create reports of your fonts database either to files or to your
windows default printer. when output goes to the printer you can also select
the page size in inches. Font Finder can create four types of reports:
1.- PostScript Name = Windows Menu Name + Attributes
File name = WFONTS-P.TXT when ouput to disk
2.- Windows Menu Name + Attributes = PostScript Name
File name = WFONTS-W.TXT when ouput to disk
3.- PostScript Name, DOS File Name
File name = WFONTS-F.TXT when ouput to disk
4.- PostScript Name, Sample
File name = Only to Printer
1.- PostScript Name = Windows Menu Name + Attributes
File name = WFONTS-P.TXT
PostScript Name = Windows Menu Name + Attributes
-------------------------------------------------------------------------
ItcKabel-Bold ..................... ITCKabel Medium .................. B
ItcKabel-Book ..................... ITCKabel Book .................... R
ItcKabel-Demi ..................... ITCKabel Book .................... B
ItcKabel-Medium ................... ITCKabel Medium .................. R
ItcKabel-Ultra .................... ITCKabel Ultra ................... R
This reports shows that to get the PostScript font ItcKabel-Bold you must
select ITCKabel Medium from the application font menu and check the bold
attribute, this list is sorted by PostScript Font names.
R = Roman or No attribute selected
B = Bold
I = Italic or Oblique
BI = Bold-Italic or Bold-Oblique
2.- Windows Menu Name + Attributes = PostScript Name
File name = WFONTS-W.TXT
Windows Menu Name + Attributes = PostScript Name
------------------------------------------------------------------------
ITCKabel Book ............... B ..... ItcKabel-Demi
ITCKabel Book ............... R ..... ItcKabel-Book
ITCKabel Medium ............. B ..... ItcKabel-Bold
ITCKabel Medium ............. R ..... ItcKabel-Medium
ITCKabel Ultra .............. R ..... ItcKabel-Ultra
This one tell you for example that if you select ITCKabel Book from the
application font menu with the bold attribute you will be getting the
PostScript font ItcKabel-Demi, this list is sorted by Windows-Menu names.
3.- PostScript Name, DOS File Name
File name = WFONTS-F.TXT
PostScript Name DOS File Name
------------------------------------------------------------------------
ItcKabel-Bold ............................................. KBB_____.PFM
ItcKabel-Book ............................................. KBW_____.PFM
ItcKabel-Demi ............................................. KBD_____.PFM
ItcKabel-Medium ........................................... KBM_____.PFM
ItcKabel-Ultra ............................................ KBU_____.PFM
This one tells you that the Windows metric file for font ItcKabel
Bold is KBB_____.PFM, the printer font file will be the same with a .PFB
extension and the Adobe font metric with a .AFM extension. This list is
sorted by the PostScript Font name.
4.- PostScript Name, Sample
This one will only work to your printer and you will get the PostScript
font name in 12 points courier follow by 14 points PostScript font name
in the font face. If you have enter custom text in the main Font Finder
screen (you can also modify or enter new custom text in the print module)
them this will be the source for the sample text. If what you just want
too see is the PostScript Font Name in the font face just make sure
the custom text string is empty.
Even if you have 1000 fonts in your database the program will only print
those that are installed under Windows you will not get blank lines or
errors telling you any font is not installed. (if you use Font Manager
by Dennis Harrington you could install only those for which you want to
get a catalog)
Notes:
When I was formating the output reports I found that even using ATM
(V 2.02) when I switched from HP Laserjet mode to PostScript mode the
reports would change so I included an input box where the user can
change the page lenght in inches. You will have to experiment with
this until you get the proper output for certain ATM settings and
Laserprinter mode.
WIth a Fujitsu RX7100PS and ATM using the pre-built fonts, I would print
the first three reports in the Printer's PostScript mode and the Catalog
in HP Laserjet mode. I Strongly suggest you print the catalog in your
printer HP mode.
If you have any comments or suggestions please Email them to me.
POSTSCRIPT FONT FINDER was written by Ivan Gonzalez and is uploaded to
Compuserve as freeware.
This program is provided "AS IS". No Warranties!
Anybody can distribute Font Finder freely as long as this DOC file
is included and not charge is made for it.
Ivan Gonzalez
CIS 72540,433